﻿<%@ Page Language="C#" MasterPageFile="~/Master/MasterPage_New.master" AutoEventWireup="true"
    CodeBehind="AreaXianQuPSLList.aspx.cs" Inherits="HZ.Supervise.Web.DataReport.AreaXianQuPSLList"
    Title="县区汇总统计" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="AreaXianQuPSLList.aspx">县区汇总统计</a></li>
            <li><a href="../../Hospital/AreaStatistics.aspx">县区实时汇总统计</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td width="100%">
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                所在地区：
                            </td>
                            <td align="left"> 
                                <%--<asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlCountry" runat="server">
                                </asp:DropDownList>--%>
                                <uc3:AreaControl ID="AreaControl1" runat="server" />
                            </td>
                            <td align="right">
                                采购类型：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="dropsource" runat="server">
                                    <asp:ListItem Value="全部">全部</asp:ListItem>
                                    <asp:ListItem Value="0">日常采购</asp:ListItem>
                                    <asp:ListItem Value="1">临时采购</asp:ListItem>
                                    <asp:ListItem Value="2">应急采购</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                排序字段：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="OrderFileds" runat="server">
                                    <%--<asp:ListItem Value="DistributeRate">配送率</asp:ListItem>--%>
                                    <asp:ListItem Value="areaid">地区</asp:ListItem>
                                    <asp:ListItem Value="PurchaseAmountTotal">采购金额(元)</asp:ListItem>
                                    <asp:ListItem Value="DistributeAmountTotal">配送金额(元)</asp:ListItem>
                                    <%--
                                    <asp:ListItem Value="PurchaseAmountTotal2">采购金额2(元)</asp:ListItem>--%>
                                    <asp:ListItem Value="WareHouseAmountTotal">入库金额(元)</asp:ListItem>
                                    <%--<asp:ListItem Value="WareHouseRate">入库率</asp:ListItem>--%>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                排序方式：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="OrderType" runat="server">
                                    <asp:ListItem Value="DESC">降序</asp:ListItem>
                                    <asp:ListItem Value="ASC">升序</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
                <td align="right">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查  询" OnClick="btnQuery_Click" CssClass="btn" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwXianQuInfo" runat="server" AutoGenerateColumns="False" CssClass="mainlist"
        AllowSorting="True" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="areaname" HeaderText="市名称" />
            <asp:BoundField DataField="xian_name" HeaderText="县区名称" />
            <%--<asp:BoundField DataField="PurchaseAmountTotal1" HeaderText="采购金额1" DataFormatString="{0:F3}" />--%>
            <asp:BoundField DataField="PurchaseAmountTotal" HeaderText="采购金额" DataFormatString="{0:F2}" />
            <asp:BoundField DataField="DistributeAmountTotal" HeaderText="配送金额" DataFormatString="{0:F2}" />
            <asp:BoundField DataField="DataRate_PS" HeaderText="配送率" NullDisplayText="NA" Visible="false" />
            <%--<asp:BoundField DataField="PurchaseAmountTotal2" HeaderText="采购金额2" DataFormatString="{0:F3}" />--%>
            <asp:BoundField DataField="WareHouseAmountTotal" HeaderText="入库金额" DataFormatString="{0:F2}" />
            <asp:BoundField DataField="addDataColumnRate" HeaderText="入库率" NullDisplayText="NA" Visible="false" />
            <%--<asp:TemplateField HeaderText="采购类型">
                <ItemTemplate>
                    <%# HZ.Supervise.Web.Function.FormatDrugSource(Eval("SortSource"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>--%>
            <asp:BoundField DataField="addDataColumn" HeaderText="采购类型" NullDisplayText="NA" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <span style="float: left; width: 30%; text-align: left">
            <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" /></span>
        <span style="float: right; width: 70%">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </span>
    </div>
    <br />
    <div class="listip">
        <ul>
            <li>说明:<span>此功能查询为静态查询当天以前的各县区药品配送情况。</span> </li>
        </ul>
    </div>
</asp:Content>
